Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency @vercel/blob to v0.15.1 #51

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Oct 18, 2023

Mend Renovate logo banner

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@vercel/blob (source) 0.9.2 -> 0.15.1 age adoption passing confidence

Release Notes

vercel/storage (@​vercel/blob)

v0.15.1

Compare Source

Patch Changes
  • f9c4061: fix(blob): Enforce content-type on fetch requests during token generation

    Before this change, we would not send the content-type header on fetch requests sent to your server during client uploads. We consider this a bugfix as it should have been sent before.

    ⚠️ If you upgrade to this version, and you're using any smart request body parser (like Next.js Pages API routes) then: You need to remove any JSON.parse(request.body) at the handleUpload step, as the body will be JSON by default now. This is valid for the onBeforeGenerateToken and onUploadCompleted steps.

v0.15.0

Compare Source

Minor Changes
  • d57df99: Adds a new mode: folded | expanded (default) parameter to the list command options. When you pass folded to mode, then we automatically fold all files belonging to the same folder into a single folder entry. This allows you to build file browsers using the Vercel Blob API.

v0.14.1

Compare Source

Patch Changes
  • 0e9fc17: Exports the ListBlobResultBlob so it can be imported from the @​vercel/blob package.
  • 41c4483: This introduces jsdoc comments for all functions that are publicly accessible in the @​vercel/blob npm package.

v0.14.0

Compare Source

Minor Changes
  • 9a6c44f: Add copy method to @​vercel/blob package. This method offers the functionality to copy an existing blob file to a new path inside the blob store. #​419

v0.13.1

Compare Source

Patch Changes
  • 15de089: fix(deps): update dependency undici to v5.26.2 [security]

v0.13.0

Compare Source

Minor Changes
  • 3cf97b1: This new version brings consistent and detailed errors about request failures (store does not exist, blob does not exist, store is suspended...).
    BREAKING CHANGE: head() will now throw instead of returning null when the blob does not exist.

v0.12.5

Compare Source

Patch Changes

v0.12.4

Compare Source

Patch Changes
  • d90e973: Removed "types" field from package.json to support "moduleResolution": "Node16"

v0.12.3

Compare Source

Patch Changes
  • c0fe4e7: vercelBlob.head() now sends a cacheControl property

v0.12.2

Compare Source

Patch Changes
  • 15f7eef: Fix types for old module resolution. Before this commit types for the main package would be imported with a dot in the import path on autocompletion.

v0.12.1

Compare Source

Patch Changes
  • ae93246: Fix `Cannot find module '@​vercel/blob/client' errors for JavaScript projects or TypeScript projects with an old moduleResolution setting.

v0.12.0

Compare Source

Minor Changes
  • 8251462: This release introduces BREAKING CHANGES. Mostly, we've separated client and server needs better. While ensuring we only export what we currently think is useful to you.

    We have a completely new documentation about client (browser) uploads: https://vercel.com/docs/storage/vercel-blob/quickstart#client-uploads.

    We've moved and renamed client-related utilities, including the ones to generate client tokens, to a separate entry file: @vercel/blob/client. Use it this way:

    import {
      upload,
      handleUpload,
      generateClientTokenFromReadWriteToken,
    } from '@​vercel/blob/client';

    Here are the new features:

    • You can now pass a clientPayload?: string option during client uploads via the upload method. This payload can be used to attach metadata to your file, for example when updating a blog post cover image, you may want to pass: clientPayload: JSON.stringify({ postId: 123 }), so you can then use it server side to update the blog post.

    Here are the BREAKING CHANGES:

    • handleBlobUpload has moved to client/handleUpload
    • For client (browser) uploads, please use client/upload instead of put. Also, the handleBlobUploadUrl option has been renamed to handleUploadUrl.
    • verifyCallbackSignature is no more exported if you think you need it, open an issue
    • BlobCommandOptions type is no longer exported. This is an internal utility type. Other internal types were removed also but nobody was using them
    • metadata in onBeforeGenerateToken and onUploadCompleted has been renamed to tokenPayload

    Enjoy!

v0.11.0

Compare Source

Minor Changes
  • b409aad: We added two new options on put():

    • addRandomSuffix: boolean: Allows to disable or enable (default) random
      suffixes added to file paths
    • cacheControlMaxAge: number: Allows to configure the browser and edge cache,
      in seconds. Default to one year (browser) and 5 minutes (edge). The edge cache
      is currently always set to a maximum of 5 minutes. But can be lowered to 0

v0.10.0

Compare Source

Minor Changes
  • e273673: BREAKING CHANGE: Some methods responses and types have been updated following a
    migration Vercel did to make Vercel Blob more robust and closer to the S3 API.

    Namely:

    • the urls generated by Vercel Blob have moved from:
      public.blob.vercel-storage.com/zyzoioy8txfs14xe/somefile-NoOVGDVcqSPc7VYCUAGnTzLTG2qEM2.txt
      to
      zyzoioy8txfs14xe.blob.vercel-storage.com/somefile-NoOVGDVcqSPc7VYCUAGnTzLTG2qEM2.txt
      This change has been done transparently: all previous blob urls are
      redirected to the new domain.
    • .put() no more sends back size and uploadedAt, use .head() to get this
      information. Refer to the PutBlobResult type.
    • .list() no more sends back contentType and contentDisposition on the
      blobs property. Refer to the ListBlobResult type.
    • .del() doesn't return any value (void). If the file was here prior to
      a del() call, then it's now deleted.
    • BlobResult type has been splitted to PutBlobResult for put() and
      HeadBlobResult for head(). Use them accordingly.

    We've reworked our README to better surface the browser-upload and
    server-upload methods.

v0.9.3

Compare Source

Patch Changes
  • 978a817: Added an API version string when activated, related to multi bucket migration, no need to update for now.

Configuration

📅 Schedule: Branch creation - "after 11pm every weekday,before 6am every weekday,every weekend" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@vercel
Copy link

vercel bot commented Oct 18, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
platform ❌ Failed (Inspect) Nov 22, 2023 7:17am

@renovate renovate bot force-pushed the renovate/vercel-blob-0.x branch from 8f6808b to 88aa8bd Compare October 19, 2023 07:01
@renovate renovate bot force-pushed the renovate/vercel-blob-0.x branch from 88aa8bd to 7ca0880 Compare October 21, 2023 07:52
@renovate renovate bot force-pushed the renovate/vercel-blob-0.x branch from 7ca0880 to adaa38c Compare October 24, 2023 06:47
@renovate renovate bot force-pushed the renovate/vercel-blob-0.x branch from adaa38c to 431f0da Compare October 24, 2023 08:34
@renovate renovate bot changed the title Update dependency @vercel/blob to v0.14.0 Update dependency @vercel/blob to v0.14.1 Oct 24, 2023
@renovate renovate bot force-pushed the renovate/vercel-blob-0.x branch from 431f0da to 31b23b1 Compare October 26, 2023 06:22
@renovate renovate bot force-pushed the renovate/vercel-blob-0.x branch from 31b23b1 to 44607a6 Compare November 1, 2023 04:36
@renovate renovate bot force-pushed the renovate/vercel-blob-0.x branch from 44607a6 to 2056ffa Compare November 8, 2023 16:21
@renovate renovate bot changed the title Update dependency @vercel/blob to v0.14.1 Update dependency @vercel/blob to v0.15.0 Nov 8, 2023
@renovate renovate bot force-pushed the renovate/vercel-blob-0.x branch from 2056ffa to c94be39 Compare November 9, 2023 06:41
@renovate renovate bot force-pushed the renovate/vercel-blob-0.x branch from c94be39 to d8107b0 Compare November 14, 2023 15:26
@renovate renovate bot changed the title Update dependency @vercel/blob to v0.15.0 Update dependency @vercel/blob to v0.15.1 Nov 14, 2023
@renovate renovate bot force-pushed the renovate/vercel-blob-0.x branch from d8107b0 to 02fb038 Compare November 17, 2023 04:58
@renovate renovate bot force-pushed the renovate/vercel-blob-0.x branch from 02fb038 to 4a58ce4 Compare November 19, 2023 01:11
@renovate renovate bot force-pushed the renovate/vercel-blob-0.x branch from 4a58ce4 to 05ebde6 Compare November 21, 2023 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant